package com.nimitz.factorEquipment.service.serviceImpl;


import com.nimitz.factorEquipment.domain.Equipment;
import com.nimitz.factorEquipment.domain.FactorEquipment;
import com.nimitz.factorEquipment.mapper.FactorEquipmentMapper;
import com.nimitz.factorEquipment.service.FactorEquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FactorEquipmentServiceImpl implements FactorEquipmentService {
    @Autowired
    private FactorEquipmentMapper factorEquipmentMapper;



    @Override
    public List<Equipment> selectEquipmentsByFactorId(Long factorId) {
        return factorEquipmentMapper.selectEquipmentsByFactorId(factorId);
    }

    @Override
    public List<FactorEquipment> getFactorEquipment(FactorEquipment factorEquipment) {

        return factorEquipmentMapper.selectFactorEquipment();
    }
}
